/*
 * @Description:
 * @Author: Cxy
 * @Date: 2024-09-06 09:40:37
 * @LastEditors: Cxy
 * @LastEditTime: 2025-03-30 18:00:31
 * @FilePath: \xy-admin\play\src\router\model\components.ts
 */

import type { RouteConfigInter } from '../type'

export default {
  path: '/components',
  meta: {
    icon: 'token:comp',
    title: '公共组件'
  },
  children: [
    {
      path: 'searchForm',
      meta: {
        icon: 'ep/switch-filled',
        title: '查询组件'
      },
      component: () => import('@/views/components/searchForm.vue')
    },
    {
      path: 'addForm',
      meta: {
        icon: 'ep/switch-filled',
        title: '添加组件'
      },
      component: () => import('@/views/components/addForm.vue')
    },
    {
      path: 'layout',
      meta: {
        icon: 'ep/switch-filled',
        title: '组件布局'
      },
      component: () => import('@/views/components/layout.vue')
    },
    {
      path: 'table',
      meta: {
        icon: 'ep/switch-filled',
        title: '表格组件'
      },
      component: () => import('@/views/components/table.vue')
    },
    {
      path: 'list',
      meta: {
        icon: 'line-md:list-3-filled',
        title: '列表示例'
      },
      component: () => import('@/views/components/list.vue')
    }
  ]
} as RouteConfigInter
